<html>
<body>
Reports the following problems when retrieving services:
<ul>
  <li>Attempts to retrieve an unregistered service.</li>
  <li>Mismatch when retrieving a service: attempting to get a project-level service as an application-level service, or vice versa.</li>
</ul>
<p>Example (Kotlin):</p>
<pre><code lang="kotlin">
@Service
class MyAppService

@Service(Service.Level.PROJECT)
class MyProjectService(private val project: Project)
</code></pre>
<pre><code lang="kotlin">
// Bad:
val projectService = service&lt;MyProjectService&gt;()         // The project-level service is retrieved as an application-level service
val applicationService = project.service&lt;MyAppService&gt;() // The application-level service is retrieved as a project-level service
</code></pre>
<pre><code lang="kotlin">
// Good:
val projectService = project.service&lt;MyProjectService&gt;()
val applicationService = service&lt;MyAppService&gt;();
</code></pre>

<!-- tooltip end -->
<p><small>New in 2023.2</small>
</body>
</html>